<#assign base=request.contextPath>
<!DOCTYPE html> 
<html>
	<head>
		<title>${title}</title>
		<meta charset="utf-8">
		<#include "common/reference.ftl" />
		<#include "common/am.reference.ftl" />
        <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=m2NXDdtzhhZFjUe0OiH2MANKHphn76xF&s=1"></script>
	</head>
	<body class="${configs["skinName"]}">
		<div class="page-content">
			<div class="row">
			<#if viewMode !="view">
			<#include "common/breadcrumb.ftl">
			</#if>
                <div id="startMap" style="height:600px; width:100%"></div>
			</div>	
		</div>
        <script type="text/javascript">
            var opts = {type: BMAP_NAVIGATION_CONTROL_SMALL};
            var center = new BMap.Point(${model.getDepLongitude()},${model.getDepLatitude()});
            var gc = new BMap.Geocoder();
            var startMap = new BMap.Map("startMap");
            startMap.addControl(new BMap.NavigationControl(opts));
            startMap.centerAndZoom(center,15);
            startMap.clearOverlays();                     // 清空所有标注
            startMap.addOverlay(new BMap.Marker(center));// 将标注添加到地图中

            $(function(){
                $('.chosen-select').chosen();
                $('#form').validator();
            })
        </script>
	</body>
</html>